package io.coding.dao;

import io.coding.model.Bl_message_board;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by Administrator on 2014/9/10.
 */
@Repository
public interface MessageBoardDao {
    public List<Bl_message_board> findAll();

    @Insert("insert into bl_mssage_board(content,create_time,source_ip) values(#{content},#{create_time},#{source_ip})")
    void AddMessageBoard(@Param("content")String content, @Param("source_ip")String source_ip, @Param("create_time")String create_time);
}
